package com.feicheng.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.entity.Warehouse;
import com.feicheng.mapper.WarehouseMapper;
import com.feicheng.service.IWarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yvming.gao
 * @since 2022-07-04
 */
@Service
public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper,Warehouse> implements IWarehouseService {

    //依赖注入仓库mapper
    @Autowired
    WarehouseMapper warehouseMapper;

    @Override
    public List<Warehouse> getWarehouseInfo(Integer userId) {
        return warehouseMapper.getWarehouseInfo(userId);
    }
}
